package JUnitTest;

import static org.junit.Assert.*;

import org.junit.Test;

import Model.AccountManager;

public class AccountManagerTest {

	@Test
	public void testAddUser() {
		int successAdded = 1;
		if (AccountManager.addUser("test1", "test1@test.com", "test", "test") != -1) {
			assertEquals(successAdded, 1);
		}
				
	}

	@Test
	public void testgetUserID() {
		int successGotten = 1;
		if (AccountManager.getUserID("test1") != -1){
			assertEquals (successGotten, 1);
		}
	}
	
	@Test
	@SuppressWarnings("unused")
	public void testvalidateEmail() {
		assertEquals(AccountManager.validateEmail("test1@test.com"), true);
	}
	

}
